package com.online.olsrootserver.master;

import com.online.olsrootserver.entity.Agent;
import org.apache.ibatis.annotations.*;

/**
 * Created by littleheng on 2018/4/26
 */
@Mapper
public interface AgentMapper {

    @Results({
            @Result(property = "id", column = "id"),
            @Result(property = "companyId", column = "company_id")
    })
    @Select("select id, company_id from ols_agent where account = #{account} and password = #{password}")
    Agent getAgentByPassword(@Param("account") String account, @Param("password")String password);
}
